#include <stdio.h>
// #define j 123456789


int main(int argc, char const *argv[])
{
    int j = 123456789;
    int a[9] = {0};
    for (int i = 0; i < 9; i++)
    {
        a[i] = j % 10;
        j /= 10; 
    }
    printf("正序");
    for (int k = 0; k < 9; k++)
    {
        printf("%d ",a[k]);
    }
    printf("\n");
    printf("倒序");
    for (int l = 8; l >= 0; l--)
    {
        printf("%d ",a[l]);
    }
    printf("\n");
    

    
    return 0;
}
